/**
@file
	ConfigImpl.h
@brief

@author
	GengYong
@revision
	2005/11/05 * Created by GengYong.
*/

#ifndef SAF_HEADER_FILE_CONFIGIMPL_H
#define SAF_HEADER_FILE_CONFIGIMPL_H

#include "../include/KernelExport.h"

#include <map>
#include <string>

namespace SAF
{
	class ConfigImpl:public IConfig
	{
	public:
		ConfigImpl();
		virtual ~ConfigImpl();
	public: 
		virtual bool Load(const char * filename);
		virtual bool Save(const char * filename);
		virtual bool SetValue(const char * key, const char *);
		virtual const char * GetValue(const char * key) const;
	private:
		std::map<std::string, std::string>	m_valmap;
	private:
		static const char * s_emptystring;
	};
}

#endif	//#ifndef SAF_HEADER_FILE_CONFIGIMPL_H

